import request from "@/utils/request";

export const getList=(data)=>{
    return request({
        url:"/mall/tenant/factory/warranty/template/page",
        method:"post",
        data
    })
}
/**
 * 新增模板
 */
export const addTemplate=(data)=>{
    return request({
        url:"/mall/tenant/factory/warranty/template/create",
        method:"post",
        data
    })
}
/**
 * 编辑模板
 */
export const editTemplate=(data)=>{
    return request({
        url:"/mall/tenant/factory/warranty/template/modify",
        method:"post",
        data
    })
}
/**
 * 删除模板
 */
export const deleteTemplate=(data)=>{
    return request({
        url:"/mall/tenant/factory/warranty/template/del",
        method:"post",
        data
    })
}
/**
 * 获取所有模板
 */
export const getAllTemplate=()=>{
    return request({
        url:"/mall/tenant/factory/warranty/template/AllList",
        method:"post",
        data:{}
    })
}

/**
 * 获取内容详情
 */
export const getTempDetail=(data)=>{
    return request({
        url:'/mall/tenant/factory/warranty/template/getDetails',
        method:'post',
        data
    })
}

/**
 * 获取商品列表
 */
export const goodsList=(data)=>{
    return request({
        url:'/mall/tenant/factory/warranty/template/searchFactoryProducts',
        method:'post',
        data
    })
}
/**
 * 确认关联
 */
export const confirmRelated=(data)=>{
    return request({
        url:'/mall/tenant/factory/warranty/template/bindingFactoryProducts',
        method:'post',
        data
    })
}
/**
 * 修改质保设置
 */
export const editSys=(data)=>{
    return request({
        url:'/mall/tenant/factory/warranty/template/modifySet',
        method:'post',
        data
    })
}